package com.bw.a2207a.arouter

import android.content.Context
import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.service.DegradeService
import com.alibaba.android.arouter.launcher.ARouter

/**
 *
 * @ClassName: DraService
 * @Description: 页面降级服务/统一处理path错误跳转情况
 * @Author: zhangyanchao
 * @CreateDate: 2024/10/21 4:14 PM
 * @Version: 1.0
 */

@Route(path = "/service/DraService")
class DraService : DegradeService {
    override fun init(context: Context?) {
    }

    override fun onLost(context: Context?, postcard: Postcard?) {
        ARouter.getInstance()
            .build("/error/ErrorActivity")
            .greenChannel()
            .navigation()
    }
}